<!DOCTYPE html>
<html lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
<meta name="keywords" content="LightYear,LightYearAdmin,光年,后台模板,后台管理系统,光年HTML模板">
<meta name="description" content="Light Year Admin V5是一个基于Bootstrap v5.1.3的后台管理系统的HTML模板。">
<title>新增文档 - 光年(Light Year Admin V5)后台管理系统模板</title>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/css/materialdesignicons.min.css">
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/css/bootstrap.min.css">
<!--tags插件css-->
<link type="text/css" rel="stylesheet" href="__STATIC__/admin/js/jquery-tagsinput/jquery.tagsinput.min.css">
<!--上传插件css-->
<link type="text/css" rel="stylesheet" href="__STATIC__/admin/js/webuploader/webuploader.css">
<!--灯箱效果插件css-->
<link type="text/css" rel="stylesheet" href="__STATIC__/admin/js/magnific-popup/magnific-popup.min.css">
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/css/animate.min.css">
<!--引入下拉插件css-->
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/js/bootstrap-select/bootstrap-select.min.css">
<link href="__STATIC__/common/select2/select2.css" rel="stylesheet">
<!--日期选择器css-->
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/js/bootstrap-datepicker/bootstrap-datepicker3.min.css">
<!--时间日期选择器css-->
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css">
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/css/style.min.css">

<link rel="stylesheet" type="text/css" href="__STATIC__/admin/css/style.min.css">
</head>
  
<body>
<div class="container-fluid">
  
  <div class="row">
    
    <div class="col-lg-12">
      <div class="card">
        <header class="card-header"><div class="card-title">{:$xzform['name']}</div></header>
        <div class="card-body">
          
          <form action="" method="post" class="row">
            <input type="hidden" name="xzform_id" value="{:$xzform['id']}" />

            <?php foreach ($fields as $k => $vo): ?>
              <?php $field = 'params['.$vo['name'].']'; ?>
              <?php if ($k % 3 == 0): ?>
                <div class="row mb-3">
              <?php endif; ?>
              <?php if ($vo['type'] == 'text'): ?>
                <div class="col-md-4">
                  {include file="html/fields/text" /}
                </div>
              <?php elseif ($vo['type'] == 'number'): ?>
                <div class="col-md-4">
                  {include file="html/fields/number" /}
                </div>
              <?php elseif ($vo['type'] == 'select'): ?>
                <?php 
                  $vo['params'] = arrayParamExtractVal(explode(',',$vo['params']));
                  $vo['is_must'] == 0 && $vo['type'] = 'select1_1';
                ?>
                <div class="col-md-4">
                  {include file="html/fields/select1" /}
                </div>
              <?php elseif ($vo['type'] == 'checkbox'): ?>
                <?php $vo['params'] = arrayParamExtractVal(explode(',',$vo['params'])); ?>
                <div class="col-md-4">
                  {include file="html/fields/checkbox" /}
                </div>
              <?php elseif ($vo['type'] == 'date'): ?>
                <div class="col-md-4">
                  {include file="html/fields/date" /}
                </div>
              <?php elseif ($vo['type'] == 'textarea'): ?>
                <div class="col-md-4">
                  {include file="html/fields/textarea" /}
                </div>
              <?php endif; ?>
              <?php if ($k % 3 == 2 || $k == count($fields) -1): ?>
                </div>
              <?php endif; ?>
            <?php endforeach; ?>

            <?php if (!empty($data['id'])): ?>
              <div class="row mb-3">
                  <?php $field = 'c_aid'; $vo = ['name'=>'申请人','type'=>'disabled']; ?>
                  <div class="col-md-4">
                    {include file="html/fields/disabled" /}
                  </div>

                  <?php $field = 'ctime'; $vo = ['name'=>'申请日期','type'=>'disabled']; ?>
                  <div class="col-md-4">
                    {include file="html/fields/disabled" /}
                  </div>

                  <?php $field = 'sp_aids'; $vo = ['name'=>'审批人','type'=>'select3','params'=>$gj_admins]; ?>
                  <div class="col-md-4">
                    {include file="html/fields/select3" /}
                  </div>
              </div>
            <?php endif ?>

            <div class="mb-3 col-md-12">
              <button type="submit" class="btn btn-primary ajax-post" target-form="add-form">确 定</button>
              <button type="button" class="btn btn-default" onclick="javascript:history.back(-1);return false;">返 回</button>
            </div>
          </form>
          
        </div>
      </div>
    </div>
        
  </div>
  
</div>
<script type="text/javascript" src="__STATIC__/admin/js/jquery.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/popper.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/bootstrap.min.js"></script>
<!--tags插件-->
<script type="text/javascript" src="__STATIC__/admin/js/jquery-tagsinput/jquery.tagsinput.min.js"></script>
<!--上传插件-->
<script type="text/javascript" src="__STATIC__/admin/js/webuploader/webuploader.js"></script>
<!--灯箱效果插件-->
<script type="text/javascript" src="__STATIC__/admin/js/magnific-popup/magnific-popup.min.js"></script>
<!--通知消息插件-->
<script type="text/javascript" src="__STATIC__/admin/js/bootstrap-notify.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/main.min.js"></script>
<!--引入下拉插件js-->
<!-- <script type="text/javascript" src="__STATIC__/admin/js/bootstrap-select/bootstrap-select.min.js"></script> -->
<script src="__STATIC__/common/select2/select2.min.js"></script>
<!--省市选择-->
<script type="text/javascript" src="__STATIC__/common/distpicker/distpicker.data.js"></script>
<script type="text/javascript" src="__STATIC__/common/distpicker/distpicker.js"></script>
<!--日期选择器js-->
<script type="text/javascript" src="__STATIC__/admin/js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<!--时间日期选择器js-->
<script type="text/javascript" src="__STATIC__/admin/js/momentjs/moment.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/momentjs/locale/zh-cn.min.js"></script>

<!--引入下拉插件js-->
<script type="text/javascript" src="__STATIC__/admin/js/bootstrap-select/bootstrap-select.min.js"></script>

<!--自定义扩展-->
<script type="text/javascript" src="__STATIC__/common/cch.js"></script>
{include file="html/jspath" /}


</body>
</html>